/**
 * 首页菜单分组配置
 *
 * GROUP:
 * 1. 微服务大厅
 * 2. 联图活动
 * 3. 我的图书馆
 */
let menu = [
  {
    name: '周边图书馆',
    icon: 'nearby-library',
    color: '#00cba3',
    route: 'map',
    requireAuth: false,
    group: 3
  },
  // {
  //   name: '证件(解)绑定',
  //   icon: 'certificates',
  //   color: '#0086ee',
  //   route: 'bind',
  //   requireAuth: true,
  //   group: 3
  // },
  // {
  //   name: '个人资料',
  //   icon: 'personal-data',
  //   color: '#00cba3',
  //   route: 'account',
  //   requireAuth: true,
  //   group: 3
  // },
  {
    name: '扫码借/还书',
    // name: '电子读者证',
    icon: 'scan-code',
    color: '#ff515b',
    route: 'qrcode',
    requireAuth: true,
    group: 3
  },

  // {
  //   name: '书目检索',
  //   icon: 'search',
  //   color: '#ff4d59',
  //   route: 'search',
  //   group: 3
  // },
  {
    name: '我的读书记录',
    icon: 'record',
    color: '#00b9f1',
    route: 'borrowHistory',
    requireAuth: true,
    group: 3
  },
  {
    name: '读者证挂失',
    icon: 'report-loss',
    color: 'coral',
    route: 'loss',
    requireAuth: true,
    group: 3
  },

  {
    name: '我的借阅',
    icon: 'current-borrowing',
    color: '#ffa700',
    route: 'borrowCurrent',
    requireAuth: true,
    group: 3
  },
  {
    name: '预约查询',
    icon: 'reservation-query',
    color: '#ff4e5a',
    route: 'reservations',
    requireAuth: true,
    group: 3
  }
]

menu = menu.concat(window.APP_EXTENDS).map(menu => ({ group: 1, ...menu }))

export default menu
